package com.gitee.wsl.mathematics.geometry.d2.line.ext

import com.gitee.wsl.mathematics.coordinate.d2.Coordinate2
import com.gitee.wsl.mathematics.geometry.d2.line.LineShape2d
import com.gitee.wsl.mathematics.matrix.mat3.Matrix3
import com.gitee.wsl.mathematics.matrix.mat3.ext.transform

fun<T:Number,V:Coordinate2<T,V>> LineShape2d<T, V>.transform(m: Matrix3<T, *,*>) =
    create( a.transform(m), b.transform(m))